from django.db import models
from danwei.models import Danwei

# Create your models here.


class Chushi(models.Model):
    id = models.AutoField(primary_key=True)
    name = models.CharField(max_length=255, blank=True, null=True)
    danwei_id = models.ForeignKey(
        Danwei, on_delete=models.CASCADE, related_name="chushi", blank=True, null=True
    )
    person_id = models.ForeignKey(#负责人
        "person.Person", on_delete=models.CASCADE, related_name="chushi", blank=True, null=True
    )
